package com.project.oauth2Server.config.redis;

import com.project.annotation.model.RedisItem;
import com.project.annotation.redis.RedisComponent;
import org.springframework.stereotype.Component;

@Component
@RedisComponent(redis = "redis_template_auth", name = "user_info", key="users")
public class UserInfoRedis  extends RedisItem {

    @Override
    public void callback(String key, Object value) {
        System.out.println(
                String.format("oauth2 key is timeout: %s_%s; value: %s", this.getRedis(), this.getName(), value));
    }

}
